package com.zoulj.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 订单记录表
 * @Date:   2021-06-27
 */
@Data
@TableName("order_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="order_info对象", description="订单记录表")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderInfoDO {
    
	/**订单id*/
    @ApiModelProperty(value = "订单id")
	private Long id;
	/**userId*/
    @ApiModelProperty(value = "userId")
	private String userId;
	@ApiModelProperty(value = "itemCode")
	private String itemCode;
	/**orderPrice*/
    @ApiModelProperty(value = "orderPrice")
	private java.math.BigDecimal orderPrice;
	/**gmtCreate*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "gmtCreate")
	private Date gmtCreate;
	/**gmtModified*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "gmtModified")
	private Date gmtModified;
}
